home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000360_harfst@cms-stl.com_Fri Feb 8 16:54:40 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  50 lines

  1. Article: 13202 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!washdc3-snh1.gtei.net!news.gtei.net!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
  3. From: harfst@cms-stl.com (David L. Harfst)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: if syntax change
  6. Date: 8 Feb 2002 13:36:13 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 32
  9. Message-ID: <26dc2188.0202081336.79eb8459@posting.google.com>
  10. NNTP-Posting-Host: 12.75.79.19
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1013204175 21258 127.0.0.1 (8 Feb 2002 21:36:15 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 8 Feb 2002 21:36:15 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13202
  17.  
  18. Hi,
  19.  
  20. I have the following block of code which runs fine on 
  21. C-Kermit 6.0.192 on HP-UX 10.20:
  22.  
  23.   xif EQUAL \$(SPEED) 14400 {
  24.     # +MS=10 - Limits the connection speed to 14.4 KBaud
  25.     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  26.   }
  27.  
  28. I'm trying to port this script to Linux, on which I'm
  29. running C-Kermit 8.0.200 and RedHat 7.2.
  30.  
  31. ?Invalid:   xif EQUAL \$(SPEED) 14400 {,   set modem command
  32. Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  33.  
  34. I know xif is obsolete, but the same error occurs with 'if'.
  35.  
  36. The "set modem command Init-string" command is valid, as it works
  37. outside the "if" block.  The "if" block also works if "echo test" is
  38. substituted for the "set modem command Init-string" command.
  39.  
  40. I've tracked it down to the "}" at the end of the command.  It seems
  41. that this is getting confused with the "}" closing the block.
  42.  
  43. If I put a \ in front of it, the block runs fine, but the string
  44. sent to the modem has ends with "\{13\}}", which is invalid.
  45.  
  46. This looks like a bug to me.  Is there a way to do this inside
  47. of a block without running into this problem?
  48.  
  49. Thanks.
  50.